import request from './require.js'

// 登录接口 /api/v2/login
export const login = (params) => request.post("/v2/login", params);

// 注册接口 /api/v2/register
export const register = (params) => request.post("/v2/register", params);

// 修改密码 /api/v2/resetPassword
export const resetPassword = (params) => request.post("/v2/resetPassword", params);

// 获取邮箱验证码 /api/v2/getEmailCode
export const getEmailCode = (params) => request.get("/v2/getEmailCode", {params});

// 获取邮箱地址 /api/v2/getEmail
export const getEmail = (params) => request.get("/v2/getEmail", {params});


// 充币接口 /api/v2/getUpCoinList
export const getUpCoinList = (params) => request.get("/v2/getUpCoinList", {params});

// 提币接口/api/v2/withdrawList
export const withdrawList = (params) => request.get("/v2/withdrawList", {params});

// 获取可添加的币种 /api/v2/getAllTokenList
export const getAllTokenList = (params) => request.get("/v2/getAllTokenList", {params});

// 获取用户的代币列表 /api/v2/getUserTokens
export const getUserTokens = (params) => request.get("/v2/getUserTokens", {params});

// 用户添加币种   /api/v2/addToken
export const addToken = (params) => request.post("/v2/addToken", params);

// 币种详情 /api/v2/getTokenInfo
export const getTokenInfo = (params) => request.get("/v2/getTokenInfo", {params});

// 订单列表 /api/v2/getOrderList
export const getOrderList = (params) => request.get("/v2/getOrderList", {params});


// 上币申请 /api/v2/addApplyToken
export const addApplyToken = (params) => request.post("/v2/addApplyToken", params);

// 获取配置信息   /api/v2/getConfigList      上币申请时下拉框数据
export const getConfigList = (params) => request.get("/v2/getConfigList", {params});

//  用户申请币种列表接口  api/v2/getApplyTokenList
export const getApplyTokenList = (params) => request.get("/v2/getApplyTokenList", {params});

// 用户回调列表 /api/v2/getCallbackList
export const getCallbackList = (params) => request.get("/v2/getCallbackList", {params});

// 回调补发 /api/v2/callbackReissue
export const callbackReissue = (params) => request.post("/v2/callbackReissue", params);

// 生成地址 /api/v2/generateAddress
export const generateAddress = (params) => request.post("/v2/generateAddress", params,);


// 获取地址 /api/v2/getUserAddress
export const getUserAddress = (params) => request.get("/v2/getUserAddress", {params});

// 提币申请 /api/v2/withdraw
export const withdraw = (params) => request.post("/v2/withdraw", params,);

// 同意或拒绝提币 /api/v2/changeWithdrawStatus
export const changeWithdrawStatus = (params) => request.post("/v2/changeWithdrawStatus", params,);


// 首页数据 /api/v2/index
export const index = (params) => request.get("/v2/index", {params});

// 修改回调地址 /api/v2/updateCallBackUrl
export const updateCallBackUrl = (params) => request.post("/v2/updateCallBackUrl", params,);

// 资产管理列表 /api/v2/getPocketList
export const getPocketList = (params) => request.get("/v2/getPocketList", {params});

// 新增资产管理 /api/v2/addPocketAddress
export const addPocketAddress = (params) => request.post("/v2/addPocketAddress", params,);

// 获取资产详情 /api/v2/getPocketInfo
export const getPocketInfo = (params) => request.get("/v2/getPocketInfo", {params});

// 更新资产管理 /api/v2/updatePocketAddress
export const updatePocketAddress = (params) => request.post("/v2/updatePocketAddress", params,);

// 删除资产管理 /api/v2/deletePocketAddress
export const deletePocketAddress = (params) => request.post("/v2/deletePocketAddress", params,);

// 修改手续费地址 或 提现地址 /api/v2/updateAddress
export const modifyFeeWithdraw = (params) => request.post("/v2/updateAddress", params,);

// 手续费地址或提现地址余额转到归集地址 /api/v2/withdrawToCollect
export const withdrawToCollectApi = (data) => request.post("/v2/withdrawToCollect", data);

// 获取产品列表 /api/v2/getProductList
export const getProductList = (params) => request.get("/v2/getProductList", {params});

// 用户升级 /api/v2/createOrder
export const createOrder = (params) => request.post("/v2/createOrder", params,);

// 获取用户到期时间 /api/v2/getMaturityTime
export const getMaturityTime = (params) => request.get("/v2/getMaturityTime", {params});

// 用户取消订单支付 /api/v2/cancelOrder
export const cancelOrder = (params) => request.post("/v2/cancelOrder", params,);

// 获取用户待支付订单 /api/v2/getPayOrder
export const getPayOrder = (params) => request.get("/v2/getPayOrder", {params});

// 确认支付 /api/v2/confirmPayOrder
export const confirmPayOrder = (params) => request.post("/v2/confirmPayOrder", params,);

// 手动归集 /api/v2/manualCollection
export const manualCollection = (params) => request.post("/v2/manualCollection", params,);

// 提币 获取提币审核状态 /api/v2/getVerifyStatus
export const getVerifyStatus = (params) => request.get("/v2/getVerifyStatus", {params});


// 提币 修改提币审核状态 /api/v2/setVerifyStatus
export const setVerifyStatus = (params) => request.post("/v2/setVerifyStatus", params,);























